//
//  UIBarButtonItem+Extension.h
//  coderSinaWeiBo24
//
//  Created by 张雪雪 on 16/3/24.
//  Copyright © 2016年 www.xue.com. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIBarButtonItem (Extension)
/**
 *  通过一张图片返回一个UIBarButtonItem
 *
 *  @param imageName <#imageName description#>
 *  @param target    <#target description#>
 *  @param action    <#action description#>
 *
 *  @return UIBarButtonItem
 */
+(instancetype)itemWithImageName:(NSString *)imageName target:(id)target action:(SEL)action;
/**
 *  通过一张图片与文字返回一个UIBarButtonItem
 *
 *  @param imageName <#imageName description#>
 *  @param title     <#title description#>
 *  @param target    <#target description#>
 *  @param action    <#action description#>
 *
 *  @return UIBarButtonItem
 */
+(instancetype)itemWithImageName:(NSString *)imageName title:(NSString *)title target:(id)target action:(SEL)action;
@end
